// 字典
import request from '@/utils/request'

export function listPage(query) {
  return request({
    url: '/cms/JcjcCategoryRectifcation/listPage/',
    method: 'get',
    params: query
  })
}

export function enable(query) {
  return request({
    url: '/cms/JcjcCategoryRectifcation/enable/',
    method: 'post',
    data: query
  })
}

/**
 * upd add
 * @param query
 * @returns {AxiosPromise}
 */
export function addOrEditData(param) {
  return request({
    url: '/cms/JcjcCategoryRectifcation/saveOrUpdate',
    method: 'POST',
    data: param
  })
}
